//
//  HMMessageTableViewController.swift
//  GuoGuo
//
//  Created by 艾小新 on 16/7/29.
//  Copyright © 2016年 xiaoxin. All rights reserved.
//

import UIKit

class HMMessageTableViewController: HMVisitorViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        if isLogon {
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "发现群", target: self, action: #selector(findUsBtnClick))
            
        setupUI()
        } else {
            
        (view as! HMVisitorView).setNameAndTitle("visitordiscover_image_message", title: "登录后，别人评论你的微博，发给你的消息，都会在这里收到通知", isHome: false)
            
    
        }
    }
    
    @objc private func findUsBtnClick() {

        navigationController?.pushViewController(UIViewController(), animated: true)

    }
    
    private func setupUI() {
        
        // 设置tabBar 这只是系统的，现在要自定义 需要运行时遍历
        tabBarItem.badgeValue = "11"

}

}
